package com.block.db.mapper;

import com.block.db.entity.ProductProfitInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 产品收益信息 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2023-09-04
 */
public interface ProductProfitInfoMapper extends BaseMapper<ProductProfitInfo> {

    ProductProfitInfo getEntityByIdAndDateInfoLock(@Param("productId") Integer productId, @Param("nowDate") String nowDate);

    Integer getUvNumberByProductId(@Param("productId")Integer productId);
}
